<template>
	<view class="main">
		<header-vue :back="true" title="地址管理">
			<!-- <template #btnLt>
			    <view class="font24 flex center" @click="goPage('/views/mine/historyFeedback')">
			        <i class="iconfont icon-add"></i>
			        <text>新增地址</text>
			    </view>
			</template> -->
		</header-vue>
		<view v-for="item in 2" class="white-box">
			<view class="info">
				<view class="flex center between font28">
					<view>收货人：李先生</view>
					<view class="color-999">15236990421</view>
				</view>
				<view class="font24 color-999">陕西省 西安市 某某区 什么街道 11111111111111111111111</view>
			</view>
			<view class="flex center between btn font24" style="color: #666666;">
				<view class="flex center">
					<image src="/static/mine/fullcheck.png"></image>
					<view :style="{color: !item ? '#0785CF' : '#999'}">默认地址</view>
				</view>
				<view class="flex font24">
					<view class="flex">
						<i class="iconfont icon-edit1"></i>
						<view>编辑</view>
					</view>
					<view class="flex">
						<i class="iconfont icon-del"></i>
						<view>删除</view>
					</view>
				</view>
			</view>
		</view>
        <view class="" style="margin-top: 32rpx;">
            <u-button
                @click="goPage('/views/address/add-address')"
                color="linear-gradient( 90deg, #0785CF 0%, #25A4EF 100%)"
                type="primary"
                text="新增地址"
                shape="circle"
            />
        </view>
       
	</view>
</template>

<script>
	import headerVue from '@/components/header.vue'

	export default {
		data() {
			return {
				title: '',
				params: {
					keyword: ''
				},
				tabIndex: 0,
				value: '',
				showModal: false
			}
		},
		components: {
			headerVue,
		},
		mounted() {},
		methods: {
			goPage(url) {
				uni.navigateTo({
					url
				});
			},
		},
		onLoad(options) {
			this.title = options.name == 0 ? '服务商家入驻' : '商城商家入驻'
		}
	}
</script>
<style lang="scss" scoped>
	.main {
		background: #F6F6F6;
	}
	
	.white-box {
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 40rpx 0rpx rgba(0,0,0,0.06);
		border-radius: 4rpx;
		margin: 28rpx 32rpx 0;
		padding: 24rpx 0;
		box-sizing: border-box;
		
		.info {
			padding: 0 24rpx 24rpx;
			box-sizing: border-box;
			border-bottom: 1rpx solid #DDDDDD;
			margin-bottom: 24rpx;
		}
		
		.color-999 {
			color: #999;
		}
		
		.btn {
			color: #666;
			padding: 0 24rpx;
			box-sizing: border-box;
			
			image {
				width: 24rpx;
				height: 24rpx;
				margin-right: 8rpx;
			}
			
			.iconfont {
				margin-right: 4rpx;
			}
		}
	}
</style>